#!/bin/bash

#选项索引
export devidx=0
for idxval in ${OEMDEV_TYPE_INDEX[@]}
do
	let devidx+=1
done
export OEMDEV_TYPE_INDEX=( ${OEMDEV_TYPE_INDEX[@]} "${devidx}" )

#机型编号
export OEMDEV_TYPE_LISTS=( ${OEMDEV_TYPE_LISTS[@]} "0207" )

#主控型号
export OEMDEV_CPUCODE_LISTS=( ${OEMDEV_CPUCODE_LISTS[@]} "AM335X" )

#应用领域，可选：RTU,IOT,HMI
export OEMDEV_APPAREA_LISTS=( ${OEMDEV_APPAREA_LISTS[@]} "RTU" )

#存储类型, 可选: SLCNAND SPINAND SPIFLASH SDEMMC
export OEMDEV_MTDHDTYP_LISTS=( ${OEMDEV_MTDHDTYP_LISTS[@]} "SLCNAND" )

#存储容量,可选：16，128, 256, 512, 1024
export OEMDEV_MTDHDSIZ_LISTS=( ${OEMDEV_MTDHDSIZ_LISTS[@]} "512" )

#文件系统，可选：YAFS2，JFFS2，UBIFS
export OEMDEV_MTDFSTYP_LISTS=( ${OEMDEV_MTDFSTYP_LISTS[@]} "UBIFS" )

#分区策略，可选：
#不带FOTA功能：
#			NORMAL，平均分区策略
#           USRMAX，/root分区最大
#           DATMAX，/data分区最大
#带有FOTA功能：
#           NMFOTA，平均分区
#           UMFOTA，/root分区最大
#           DMFOTA，/data分区最大
export OEMDEV_MTDFSPAT_LISTS=( ${OEMDEV_MTDFSPAT_LISTS[@]} "UMFOTA" )

#描述信息
export OEMDEV_TYPE_NOTES=( ${OEMDEV_TYPE_NOTES[@]} "企业级采集器" )

#引导源码目录
export OEMDEV_BOOT_RAWDIR_NAME_LISTS=( ${OEMDEV_BOOT_RAWDIR_NAME_LISTS[@]} "boot");
#内核源码目录
export OEMDEV_KERN_RAWDIR_NAME_LISTS=( ${OEMDEV_KERN_RAWDIR_NAME_LISTS[@]} "kern");
#内存文件系统源码目录
export OEMDEV_KNFS_RAWDIR_NAME_LISTS=( ${OEMDEV_KNFS_RAWDIR_NAME_LISTS[@]} "knfs");
#用户文件系统源码目录
export OEMDEV_RTFS_RAWDIR_NAME_LISTS=( ${OEMDEV_RTFS_RAWDIR_NAME_LISTS[@]} "rtfs");

#自定义MTD分区列表
export MTDSUB_SELF_0207=yes
export MTDSUB_BOOT_0207=1
export MTDSUB_KNFS_0207=8
export MTDSUB_RTFS_0207=64
export MTDSUB_OVFS_0207=0
export MTDSUB_EXTD_0207=0
export MTDSUB_DATA_0207=32
export MTDSUB_VEND_0207=64
let    MTDSUB_ROOT_0207=$[ 512 - $[ ${MTDSUB_BOOT_0207} + \
					${MTDSUB_KNFS_0207}    + \
					${MTDSUB_RTFS_0207}    + \
					${MTDSUB_OVFS_0207}    + \
					${MTDSUB_EXTD_0207}    + \
					${MTDSUB_DATA_0207}    + \
					${MTDSUB_VEND_0207} ] ]
export MTDSUB_ROOT_0207
